package mes.kanban.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 用户与角色的对应关系
 * @author gjy
 *
 * 2018年2月7日下午4:15:22
 */
@Entity
@Table(name="MES_USER_ROLE")
public class MesUserAndRole implements Serializable{

	private static final long serialVersionUID = 4159476923581260325L;
	
	@Id
	@Column(name="id")
	@GeneratedValue(generator="uuid")
	@GenericGenerator(name="uuid",strategy="org.hibernate.id.UUIDGenerator")
	private String id;
	
	@Column(name="user_id")
	private String userId;
	
	@Column(name="role_id")
	private String roleId;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}
	
	

}
